package hutool;

import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;

/**
 * @Author: DRevelation
 * @Date: 2021/4/27 13:50
 */
public class JSONUtilDemo {
    public static void main(String[] args) {
        String str = "[\n" +
                "    {\n" +
                "        \"clarity\": \"超清\",\n" +
                "        \"url\": \"https://dbxz1-hw.ahtv.cn/-248471a52f83_H.265_1920x1080_AAC_2186.mp4\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"clarity\": \"高清\",\n" +
                "        \"url\": \"https://dbxz1-hw.ahtv.cn/-248471a52f83_H.265_1280x720_AAC_1400.mp4\"\n" +
                "    },\n" +
                "    {\n" +
                "        \"clarity\": \"标清\",\n" +
                "        \"url\": \"https://dbxz1-hw.ahtv.cn/-248471a52f83_H.265_854x480_AAC_500.mp4\"\n" +
                "    }\n" +
                "]";
        JSONArray array = JSONUtil.parseArray(str);
        System.out.println("array = " + array);
    }
}
